package com.laoxu.microservice.controller;

import com.laoxu.microservice.entity.Menu;
import com.laoxu.microservice.entity.MenuVO;
import com.laoxu.microservice.feign.MenuFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description:
 * @Author laoxu
 * @Date 2020/2/23 19:22
 **/
@Controller
@RequestMapping("/client")
public class ClientHandler {
    @Autowired
    private MenuFeign menuFeign;

    @GetMapping("/findAll")
    @ResponseBody
    public MenuVO findAll(@RequestParam("page") int page, @RequestParam("limit") int limit){
        return menuFeign.findAll(page, limit);
    }
}
